<?php

class Application_Form_Comment extends Asd_Form
{

    public function init()
    {
        $this->setName('comment_form');
        parent::init();   
        
        $this->setMethod("POST");
        
        $comment = new Zend_Form_Element_Textarea('body');
        $comment->setLabel('Комментарий')
                ->setRequired(true)
                ->setAttrib('rows', 5)
                ->addValidator('NotEmpty')
                ->addFilter('StringTrim');
        $this->addElement($comment);
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Кошуу')
                ->setAttrib('class', 'button_big');
        $this->addElement($submit);
    }


}

